package com.teamide.param;

import java.util.ArrayList;
import java.util.Map;

/**
 * SQL执行的参数载体List，这里的SQL可以使用“:name”作为占位符，在param中填写相应的名称的key值
 * 
 * @author ZhuLiang
 *
 */
public class SqlParamList extends ArrayList<SqlParam> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public SqlParamList() {

	}

	public SqlParamList(SqlParam sqlParam) {

		add(sqlParam);
	}

	public SqlParamList(String sql, Map<String, Object> param) {

		add(sql, param);
	}

	public SqlParamList add(String sql, Map<String, Object> param) {

		add(new SqlParam(sql, param));
		return this;
	}

}
